package session07.guessnumber;

import javax.swing.*;
import java.awt.*;

public class MidPanel extends JPanel {

    private JLabel msgLab;

    public MidPanel(){
        this.setBackground(Color.GRAY);
        this.setLayout(null);

        this.msgLab = new JLabel("让我们开始玩猜数字游戏吧");
        this.msgLab.setBounds(100,60,100,30);
        this.add(this.msgLab);

        this.setBorder(BorderFactory.createTitledBorder(BorderFactory.createLineBorder(Color.RED,5),"消息"));
    }
}
